//
//  HomeworkAfterCollectionViewCell.m
//  Learn
//
//  Created by 迟建国 on 2024/4/4.
//  Copyright © 2024 迟建国. All rights reserved.
//

#import "HomeworkAfterCollectionViewCell.h"
#import "HomeworkItemTableViewCell.h"

@implementation HomeworkAfterCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.layer.cornerRadius = 15;
    self.layer.masksToBounds = YES;
    [self.tableView registerNib:[UINib nibWithNibName:@"HomeworkItemTableViewCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:@"HomeworkItemTableViewCell"];
    // Initialization code
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 5;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    HomeworkItemTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"HomeworkItemTableViewCell" forIndexPath:indexPath];
    if (!cell) {
        cell = [[[NSBundle mainBundle]loadNibNamed:@"HomeworkItemTableViewCell" owner:self options:nil] lastObject];
    }
//    cell.model = self.dataArr[indexPath.row];
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return 75;
}
@end
